<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  let arr = new Array(1, 2, 3)
  console.log(arr) // [1, 2, 3]

  let arr2 = new Array(5)
  console.log(arr2) // [empty × 5]

  let ite = arr[Symbol.iterator]()
  console.log(ite.next()) // {value: 1, done: false}
  console.log(ite.next()) // {value: 2, done: false}
  console.log(ite.next()) // {value: 3, done: false}
  console.log(ite.next()) // {value: undefined, done: true}

  for (let i of arr) {
    console.log(i)
  }

</script>
</body>
</html>
